<html>
<head>
    <title>美团外卖拼单</title>
</head>
    <table align="center" width="90%" height="100%" border=1 bordercolor="#00ff99">
        <tbody>
        <tr>
            <td colspan="3" align="center">
                <h1>美团外卖拼单-选择餐厅</h1>
            </td>
            <td colspan="1" align="center">
                <a href="/report">查看点餐结果</a>
            </td>
        </tr>

        <%
        for(var i=0;i<row ; i++){%>
        <tr>
            <%
            if(@hallList.size()<=(i*4+0)){
            break;
            }
            var hall = @hallList.get(i*4+0);
            if(hall != null){%>
            <td width="25%">
                <a href="foodList/${hall.id}">
                    <div><img src="${hall.picUrl}"></div>
                    <div><font size="3" face="arial">${hall.name}</font></div>
                    <div><font size="2" face="arial" color="green">${hall.disInfo}</font></div>
                </a>
            </td>
            <%}%>

            <%
            if(@hallList.size()<=(i*4+1)){
            break;
            }
            hall = @hallList.get(i*4+1);
            if(hall != null){%>
            <td width="25%">
                <a href="foodList/${hall.id}">
                    <div><img src="${hall.picUrl}"></div>
                    <div><font size="3" face="arial">${hall.name}</font></div>
                    <div><font size="2" face="arial" color="green">${hall.disInfo}</font></div>
                </a>
            </td>
            <%}%>

            <%
            if(@hallList.size()<=(i*4+2)){
            break;
            }
            hall = @hallList.get(i*4+2);
            if(hall != null){%>
            <td width="25%">
                <a href="foodList/${hall.id}">
                    <div><img src="${hall.picUrl}"></div>
                    <div><font size="3" face="arial">${hall.name}</font></div>
                    <div><font size="2" face="arial" color="green">${hall.disInfo}</font></div>
                </a>
            </td>
            <%}%>

            <%
            if(@hallList.size()<=(i*4+3)){
            break;
            }
            hall = @hallList.get(i*4+3);
            if(hall != null){%>
            <td width="25%">
                <a href="foodList/${hall.id}">
                    <div><img src="${hall.picUrl}"></div>
                    <div><font size="3" face="arial">${hall.name}</font></div>
                    <div><font size="2" face="arial" color="green">${hall.disInfo}</font></div>
                </a>
            </td>
            <%}%>
        </tr>
        <%}
        %>
        </tbody>
    </table>

</html>